import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import Wrap from '@/app/Hoc/Wrap'
import './style.scss'

class Article extends Component {
    render() {
        const li = [1, 2, 3, 4, 5].map((value) => {
            return (<li key={value}>
                        <Link to={`/article/${value}`}>文章{value}</Link>
                    </li>)
        })
       
        return (
            <Wrap>
                <h2 className="list-h2">这里是文章列表页</h2>
                <ul className="list-li">
                    {li}
                </ul>
            </Wrap>
        )
    }
}

export default Article